<template>
    <div class="add">
        <edit-list :prop="acquire"></edit-list>
    </div>
</template>
<script>
import editList from "../components/EditList.vue"
export default {
    name:"edit",
    data(){
      return{
          acquire:{
              flag:'',
              text:''
          }
      }
    },
    components:{
        editList
    },
    methods:{
         getId(id){
               if(id==100){
                   this.acquire.flag=false;
                   this.acquire.text="新增地址"
               }else if(id==200){
                   this.acquire.flag=true;
                   this.acquire.text="编辑地址"
               }
         }
    },
    created(){
        this.getId(this.$route.query.id)
    }
}
</script>
<style lang="less" scoped>

</style>